package com.mlk.rbac.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * index controller
 * @author xulu
 */
@Controller
public class IndexController {

    /**
     * 返回页面到系统首页
     * @return
     */
    @RequestMapping("/")
    public String index(){
        return "index";
    }

    /**
     * 返回到欢迎页
     * @return
     */
    @RequestMapping("welcome")
    public String mainPage(){
        return "welcome";
    }
}
